<?php /* Smarty version 2.6.18, created on 2009-05-07 13:26:19
         compiled from room/company.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'room/company.html', 89, false),array('function', 'html_checkboxes', 'room/company.html', 98, false),array('modifier', 'default', 'room/company.html', 106, false),array('modifier', 'date_format', 'room/company.html', 150, false),)), $this); ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->_tpl_vars['Charset']; ?>
">
<title>商务室 - <?php echo $this->_tpl_vars['sitetitle']; ?>
</title>
<link href="<?php echo $this->_tpl_vars['CSS_PATH']; ?>
css/style.css" rel="stylesheet" type="text/css">
<link href="<?php echo $this->_tpl_vars['INC_PATH']; ?>
css/room.css" rel="stylesheet" type="text/css">
<script src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/prototype.js"></script>
<script language="javascript" src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/popcalendar.js"></script>
<script language="javascript" src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/general.js"></script>
<script src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/mixselect.js"></script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td height="83"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/element.top.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr align="center" valign="top">
    <td width="180" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/left_bg.gif"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "room/menu.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
    <td align="center"><table width="98%"  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/banr_pic.gif" width=570 height=101 alt=""></td>
        </tr>
      </table>
        <table width="95%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="45" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/title_bg.gif"><table height="30" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td>&nbsp;</td>
                  <td class="font14b_org"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/company.gif" width="15" height="16"> 公司信息 <?php echo $this->_tpl_vars['CompanyNotExists']; ?>
</td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td height="5" valign="top" class="bggray2"></td>
          </tr>
      </table>
	  <form name="companyeditfrm" action="./company.php" method="post" onsubmit="document.getElementById('company_edit').disabled=true;" enctype="multipart/form-data">
		 <input type="hidden" name="id" value="<?php echo $this->_tpl_vars['CompanyInfo']['CompanyId']; ?>
">        
		 <table width="95%"  border="0" cellspacing="0" cellpadding="0">          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="35"><span class="gray">&nbsp;（提示：带<font color="#FF6600"> * </font>号的为必填项）</span></td>
                </tr>
                <tr>
                  <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td class="bgblue"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/corner_01.gif" width="12" height="12"></td>
                        <td align="right" valign="top" class="tdright"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/corner_02.gif" width="12" height="12"></td>
                      </tr>
                  </table></td>
                </tr>
                <tr>
                  <td>
				  <table width="100%" border="0" cellspacing="0" cellpadding="5">
				  <?php if ($this->_tpl_vars['CompanyInfo']['CompanyStatus'] == 1): ?>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">*</font> 公司名称：</td>
                        <td class="tdright"><?php echo $this->_tpl_vars['CompanyInfo']['CompanyName']; ?>
</td>
                      </tr>
                      <tr>
                        <td class="tdleft"> 公司英文名称</td>
                        <td class="tdright"><?php echo $this->_tpl_vars['CompanyInfo']['CompanyEnglishName']; ?>
</td>
                      </tr>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">*</font> 行业类别：</td>
                        <td class="tdright"><?php $_from = $this->_tpl_vars['CurrentIndustry']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['cui'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['cui']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['ci']):
        $this->_foreach['cui']['iteration']++;
?><?php echo $this->_tpl_vars['ci']['IndustryName']; ?>
<?php if (! ($this->_foreach['cui']['iteration'] == $this->_foreach['cui']['total'])): ?>&rarr;<?php endif; ?><?php endforeach; else: ?>空<?php endif; unset($_from); ?></td>
                      </tr>
				<?php else: ?>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">*</font> 公司名称：</td>
                        <td class="tdright"><input name="name" type="text" id="name" value="<?php echo $this->_tpl_vars['CompanyInfo']['CompanyName']; ?>
" size="30"></td>
                      </tr>
                      <tr>
                        <td class="tdleft"> 公司英文名称</td>
                        <td class="tdright"><input name="english_name" type="text" id="english_name" value="<?php echo $this->_tpl_vars['CompanyInfo']['CompanyEnglishName']; ?>
" size="30"></td>
                      </tr>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">*</font> 行业类别：</td>
                        <td class="tdright"><select name="aindustry" id="aindustry" USEDATA="dataSrc" SUBCLASS="1">
                          </select>
                            <select name="bindustry" id="bindustry" USEDATA="dataSrc" SUBCLASS="2">
                            </select></td>
                      </tr>
				<?php endif; ?>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">*</font> 员工人数：</td>
                        <td class="tdright"><?php echo smarty_function_html_options(array('name' => 'EmployeeAmount','options' => $this->_tpl_vars['EmployeeAmounts'],'selected' => $this->_tpl_vars['SelectedEmployeeAmount']), $this);?>
<font color="#666666">&nbsp;                        </font></td>
                      </tr>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">*</font> 年营业额：</td>
                        <td class="tdright"><?php echo smarty_function_html_options(array('name' => 'AnnualRevenue','options' => $this->_tpl_vars['CompanyAnual'],'selected' => $this->_tpl_vars['SelectedAnual']), $this);?>
</td>
                      </tr>
                      
                      <tr>
                        <td class="tdleft"><font color="#FF6600">*</font> 经营模式：</td>
                        <td class="tdright"><?php echo smarty_function_html_checkboxes(array('name' => 'manage_type','options' => $this->_tpl_vars['ManageTypes'],'checked' => $this->_tpl_vars['SelectedProperty']), $this);?>
</td>
                      </tr>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">*</font> 企业经济性质：</td>
                        <td class="tdright"><?php echo smarty_function_html_options(array('name' => 'company_property','options' => $this->_tpl_vars['CompanyProperty'],'selected' => $this->_tpl_vars['SelectedType']), $this);?>
                        <font color="#666666">&nbsp;                          </font></td>
                      </tr>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">*</font> 主营产品：</td>
                        <td class="tdright"><textarea name="main_prod" cols="40" rows="4" id="main_prod"><?php echo ((is_array($_tmp=@$this->_tpl_vars['CompanyInfo']['CompanyMainProd'])) ? $this->_run_mod_handler('default', true, $_tmp, "") : smarty_modifier_default($_tmp, "")); ?>
</textarea><font class=S><br>
（100个字符以内）</font></td>
                      </tr>
					  <?php if ($this->_tpl_vars['CompanyInfo']['CompanyStatus'] == 1): ?>
                      <tr>
                        <td class="tdleft">所在地区：</td>
                        <td class="tdright"><?php echo $this->_tpl_vars['CompanyInfo']['ProvinceName']; ?>
<?php echo $this->_tpl_vars['CompanyInfo']['CityName']; ?>
</td>
                      </tr>
					  <?php else: ?>
                      <tr>
                        <td class="tdleft">所在地区：</td>
                        <td class="tdright"><select name="countryid" id="country_id" USEDATA="dataSrc2" SUBCLASS="1">
                          </select>
						  <select name="provinceid" id="province_id" USEDATA="dataSrc2" SUBCLASS="2">
                          </select>
						  <select name="cityid" id="city_id" USEDATA="dataSrc2" SUBCLASS="3">
                          </select></td>
                      </tr>
					  <?php endif; ?>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">*</font> 详细地址：</td>
                        <td class="tdright"><input name="address" type="text" id="address" value="<?php echo $this->_tpl_vars['CompanyInfo']['CompanyAddress']; ?>
" size="32">                            </td>
                      </tr>
                      <tr>
                        <td valign="top" class="tdleft"><font color="#FF6600"> <br>
                        *</font> 公司介绍：</td>
                        <td class="tdright"><p>
                            <textarea name="company_des" cols="40" rows="8" wrap="VIRTUAL" id="company_des" onKeyUp="checkLength(this);"><?php echo $this->_tpl_vars['CompanyInfo']['CompanyDescription']; ?>
</textarea><br><small>文字最大长度: 250. 还剩: <span id="chLeft">250</span>.</small><br>
                        </p></td>
                      </tr>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">*</font> 法人代表：</td>
                        <td class="tdright"><font color="#666666"> <span class="zi">
                          <input name="bossname" type="text" id="bossname" value="<?php echo $this->_tpl_vars['CompanyInfo']['CompanyBossName']; ?>
" size="25">
                        </span> </font></td>
                      </tr>
                      <tr>
                        <td class="tdleft">公司注册地：</td>
                        <td class="tdright"><font color="#666666"> <span class="zi">
                          <input name="reg_address" type="text" id="reg_address" value="<?php echo $this->_tpl_vars['CompanyInfo']['CompanyRegAddress']; ?>
" size="25">
                        </span> </font></td>
                      </tr>
                      <tr>
                        <td class="tdleft">注册时间：</td>
                        <td class="tdright"><input type="text" name="FoundDate" size="20" maxlength="20" value='<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['CompanyInfo']['CompanyFoundDate'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")))) ? $this->_run_mod_handler('default', true, $_tmp, 'None') : smarty_modifier_default($_tmp, 'None')); ?>
' id="date1" readonly>
<a href="javascript:;" onclick='showCalendar(this, document.getElementById("date1"), "yyyy-mmmm-dd",null,0,-1,-1)'><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/calendar.gif" border="0" alt=""></a></td>
                      </tr>
                      <tr>
                        <td class="tdleft">注册资金：</td>
                        <td class="tdright">                          
						<?php echo smarty_function_html_options(array('name' => 'reg_fund','options' => $this->_tpl_vars['CompanyFunds'],'selected' => $this->_tpl_vars['SelectedFund']), $this);?>
（请如实填写）</td>
                      </tr>
                      <tr>
                        <td class="tdleft">开户银行：</td>
                        <td class="tdright"><input name="bank_from" type="text" id="bank_from" value="<?php echo $this->_tpl_vars['CompanyInfo']['CompanyBankFrom']; ?>
" size="32"></td>
                      </tr>
                      <tr>
                        <td class="tdleft">　帐 号：</td>
                        <td class="tdright"><input name="bank_account" type="text" id="bank_account" value="<?php echo $this->_tpl_vars['CompanyInfo']['CompanyBankAccount']; ?>
" size="32"></td>
                      </tr>
                      <tr>
                        <td class="tdleft">品牌名称：</td>
                        <td class="tdright"><input name="main_brand" type="text" id="main_brand" value="<?php echo $this->_tpl_vars['CompanyInfo']['CompanyMainBrand']; ?>
" size="32"></td>
                      </tr>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">*</font> 主要经营地点：</td>
                        <td class="tdright"><input name="main_biz_place" type="text" id="main_biz_place" value="<?php echo $this->_tpl_vars['CompanyInfo']['CompanyMainBizPlace']; ?>
" size="32"> 
                        省市名</td>
                      </tr>
                      <tr>
                        <td class="tdleft">主要客户群：</td>
                        <td class="tdright"><input name="main_customer" type="text" id="main_customer" value="<?php echo $this->_tpl_vars['CompanyInfo']['CompanyMainCustomer']; ?>
" size="32">                          
                        （如超市，包装厂）                       </td>
                      </tr>
                      <tr>
                        <td valign="middle" class="tdleft">主要市场：</td>
                        <td class="tdright"><?php echo smarty_function_html_checkboxes(array('name' => 'main_market','options' => $this->_tpl_vars['MainMarkets'],'checked' => $this->_tpl_vars['SelectedMarket'],'labels' => false), $this);?>
</td>
                      </tr>
                      <tr>
                        <td class="tdleft">联系人：</td>
                        <td class="tdright"><input name="linkman" type="text" id="linkman" value="<?php echo $this->_tpl_vars['CompanyInfo']['CompanyLinkMan']; ?>
" size="32"></td>
                      </tr>
                      <tr>
                        <td class="tdleft">联系人职位：</td>
                        <td class="tdright">
						<select name="position" id="position">
						<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['LinkmanPositions'],'selected' => $this->_tpl_vars['SelectedPosition'],'labels' => false), $this);?>

                       </select></td>
                      </tr>
                      <tr>
                        <td class="tdleft">联系电话：</td>
                        <td class="tdright"><input name="telcode" type="text" id="telcode" value="<?php echo $this->_tpl_vars['CompanyInfo']['CompanyTelcode']; ?>
" size="4" maxlength="4">
                        -
                          <input name="telzone" type="text" id="telzone" value="<?php echo $this->_tpl_vars['CompanyInfo']['CompanyTelzone']; ?>
" size="4" maxlength="4">
                        -
                        <input name="tel" type="text" id="tel" value="<?php echo $this->_tpl_vars['CompanyInfo']['CompanyTel']; ?>
" size="15"></td>
                      </tr>
                      <tr>
                        <td class="tdleft">传真号码：</td>
                        <td class="tdright"><input name="faxcode" type="text" id="faxcode" value="<?php echo $this->_tpl_vars['CompanyInfo']['CompanyFaxcode']; ?>
" size="4" maxlength="4">
-
  <input name="faxzone" type="text" id="faxzone" value="<?php echo $this->_tpl_vars['CompanyInfo']['CompanyFaxzone']; ?>
" size="4" maxlength="4">
-
<input name="fax" type="text" id="fax" value="<?php echo $this->_tpl_vars['CompanyInfo']['CompanyFax']; ?>
" size="15"></td>
                      </tr>
                      
                      <tr>
                        <td class="tdleft">手机号码</td>
                        <td class="tdright"><input name="mobile" type="text" id="mobile" value="<?php echo $this->_tpl_vars['CompanyInfo']['CompanyMobile']; ?>
" size="32"></td>
                      </tr>
                      <tr>
                        <td class="tdleft">公司主页</td>
                        <td class="tdright"><input name="site_url" type="text" id="site_url" value="<?php echo $this->_tpl_vars['CompanyInfo']['CompanySiteUrl']; ?>
" size="32"></td>
                      </tr>
                      <tr>
                        <td class="tdleft">业务Email：</td>
                        <td class="tdright"><input name="email" type="text" id="email" value="<?php echo $this->_tpl_vars['CompanyInfo']['CompanyEmail']; ?>
" size="32"></td>
                      </tr>
                      <tr>
                        <td class="tdleft">企业Logo图片：</td>
                        <td class="tdright"><input name="picture" type="file" id="Picture" value="" size="32" onchange="document.getElementById('CompanyLogo').innerHTML='<img src=\''+this.value+'\' width=117 height=63>'"><div id="CompanyLogo" style="width: 117px; height: 63px"><?php if ($this->_tpl_vars['CompanyInfo']['CompanyPicture']): ?><img src="../media/attachment/<?php echo $this->_tpl_vars['CompanyInfo']['CompanyPicture']; ?>
" width="117" height="63" alt="企业标识图片" /><?php endif; ?></div></td>
                      </tr>
                  </table></td>
                </tr>
                <tr>
                  <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="21%" class="tdleft"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/corner_03.gif" width="12" height="12"></td>
                        <td align="right" valign="top" class="tdright"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/corner_04.gif" width="12" height="12"></td>
                      </tr>
                  </table></td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td height="40" align="center"><br>
				<input type="hidden" name="edit_company" id="EditCompany" value="y" />
                <input name="company_edit" type="submit" id="CompanyEdit" value="确认提交">
            </td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
    </table>
	</form>
	</td>
  </tr>
</table>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "room/foot.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</center>
</html>
<script language="javascript">
var linkage = new Linkage("dataSrc", "<?php echo $this->_tpl_vars['JS_PATH']; ?>
media/xml/industry_option.xml");
linkage.BLANK_SELECT = "请选择";
linkage.init();
var linkage2 = new Linkage("dataSrc2", "<?php echo $this->_tpl_vars['JS_PATH']; ?>
media/xml/area.xml");
linkage2.BLANK_SELECT = "请选择";
linkage2.init();
</script>